/**
 * 
 */
package com.gragra.sequentiaDataGenerator.tests;
import static org.junit.Assert.*;
import java.util.Collection;
import org.junit.Before;
import org.junit.Test;
import com.gragra.sequentiaDataGenerator.EmptySegmentation;
/**
 * @author Christoph Teichmann
 * created Mar 26, 2013 9:04:49 PM
 * @version 0.1
 */
public class TestEmptySegmentation
{
	/**
	 * 
	 */
	private EmptySegmentation es;
	/**
	 *
	 * @throws java.lang.Exception
	 */
	@Before
	public void setUp() throws Exception
	{
		es = new EmptySegmentation();
	}
	/**
	 * Test method for {@link com.gragra.sequentiaDataGenerator.EmptySegmentation#segment(java.lang.String)}.
	 */
	@Test
	public final void testSegment()
	{
		Collection<String[]> coll = es.segment("honey");
		assertArrayEquals(new String[] {"honey"}, coll.iterator().next());
		assertTrue(coll.size() == 1);
		coll = es.segment("milk");
		assertArrayEquals(new String[] {"milk"}, coll.iterator().next());
		assertTrue(coll.size() == 1);
		coll = es.segment("milk|with|honey");
		assertArrayEquals(new String[] {"milk","with","honey"},coll.iterator().next());
	}
}